vulkan: use GDK_DISPLAY_NOTE
authorMatthias Clasen <mclasen@redhat.com>
Mon, 15 Jan 2018 13:01:01 +0000 (08:01 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 15 Jan 2018 13:01:01 +0000 (08:01 -0500)
Where we have a display, we should use the per-display logging.

gdk/gdkvulkancontextprivate.h

index b41a492a7e0a62e5c859748d49b5843fcd90c56f..68669d342b608f8753cc6139cf6839a84091adba 100644 (file)
@@ -72,12 +72,12 @@ void            gdk_display_unref_vulkan                        (GdkDisplay
 
 #else /* !GDK_RENDERING_VULKAN */
 
+
 static inline gboolean
 gdk_display_ref_vulkan (GdkDisplay  *display,
                         GError     **error)
 {
-  GDK_NOTE (VULKAN, g_print ("Support for Vulkan disabled at compile-time"));
-
+  GDK_DISPLAY_NOTE (display, VULKAN, g_message ("Support for Vulkan disabled at compile-time"));
   g_set_error_literal (error, GDK_VULKAN_ERROR, GDK_VULKAN_ERROR_UNSUPPORTED,
                        "Vulkan support was not enabled at compile time.");